package com.fyyg.service.system;

import com.fyyg.dal.system.TSysConfigMapper;
import com.fyyg.interfaces.system.TSysConfigService;
import com.fyyg.model.TSysConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("sysConfigService")
public class TSysConfigServiceImpl implements TSysConfigService {

    @Autowired
    TSysConfigMapper configMapper;

    @Override
    public TSysConfig selectByPrimaryKey(Integer key) {
        return configMapper.selectByPrimaryKey(key);
    }

    @Override
    public TSysConfig selectByKey(String key) {
        return configMapper.selectByKey(key);
    }

    @Override
    public List<TSysConfig> allConfig() {
        return configMapper.allConfig();
    }
    
    @Override
    public int updateByPrimaryKeySelective(TSysConfig config){
    	return configMapper.updateByPrimaryKeySelective(config);
    }
}
